package com.niiwoo.activity.event.dto.request;

import com.niiwoo.activity.event.enums.DeadlineUnitEnum;
import com.niiwoo.activity.event.enums.InvestTypeEventEnum;
import com.niiwoo.activity.event.enums.ProjectTypeEnum;
import com.niiwoo.activity.event.enums.RepaymentTypeEnum;
import com.niiwoo.activity.event.enums.UserPrizeTypeEventEnum;
import com.niiwoo.activity.event.enums.YesOrNoEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by dengyunhui on 2018/03/06.
 */
@Getter
@Setter
public class InvestEventReqDTO  extends BaseEventReqDTO implements Serializable {

    // 标的ID
    private Long projectId;

    // 标的名称
    private String projectName;

    // 标的类型
    private ProjectTypeEnum projectType;

    // 标的期限
    private Integer deadline;

    // 标的期限单位
    private DeadlineUnitEnum deadlineUnit;

    // 还款方式
    private RepaymentTypeEnum repaymentType;

    // 投资明细ID
    private Long investorId;

    // 投资金额
    private BigDecimal investAmount;

    // 预期收益
    private BigDecimal investProfit;

    // 投资时间
    private Date investTime;

    // 满标时间
    private Date fullSuccessTime;

    // 是否由当前用户满标
    private YesOrNoEnum isThisUserFullProject;

    //投资方式（自动，批量，手动）
    private InvestTypeEventEnum investTypeEventEnum;

    //投放渠道编码
    private String channelCode;

    //投放渠道名称
    private String channelName;

    //是否使用红包
    private YesOrNoEnum prizeYesOrNoEnum;

    //红包类型
    private UserPrizeTypeEventEnum prizeTypeEventEnum;

    //撤销投资时间
    private Date cancelInvestDate;

    //红包对应的活动
//    private String activityCode;

    //红包id
    private Long prizeId;
}
